Test   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 9
c 0
b 0
f 0
rs 10

2 Functions

Rating   Name   Duplication   Size   Complexity  
A setTmpFolder 0 3 1
A cleanTmpFolder 0 3 1
1
import fse from 'fs-extra';
2
import { tmpFolder } from './constants';
3
4
export * from './utils';
5
export * from './constants';
6
7
export default class Test {
8
    async setTmpFolder() {
9
        await fse.ensureDir(tmpFolder);
10
    }
11
12
    async cleanTmpFolder() {
13
        await fse.remove(tmpFolder);
14
    }
15
}
16
17